//
// Created by Administrator on 2025/4/21/周一.
//
#include "iostream"

using namespace std;

class Person {
public:
    int m_Age;

    void showClassName() {
        cout << "this is a Person Class" << endl;
    }

    //会报错，因为age为NULL
    void showPersonAge() {
        if (this == NULL) {
            return;
        }
        cout << "age = " << m_Age << endl;
    }
};


void test01() {
    Person *p1 = NULL;
    p1->showClassName();
    p1->showPersonAge();
}

int main() {
    test01();
}